package com.edais.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.Finance;
import com.edais.domain.PlanCategorys;
import com.edais.persistence.FinancePlanMapper;

@Repository

public class FinancePlanDao {
	@Autowired
	private FinancePlanMapper financeMapper;
	
	public String getFinancesCount(Map<String, Object> map) throws Exception {
		return this.financeMapper.getFinancesCount(map);
	}
	
	public List<Finance> getFinanceList(Map<String, Object> map) throws Exception {
		return this.financeMapper.getFinanceList(map);
	}
	
	public String getChildFinancePlanCount(String queryFlag) throws Exception {
		return this.financeMapper.getChildFinancePlanCount(queryFlag);
	}
	
	public List<Finance> getChildFinancePlanList(String queryFlag) throws Exception {
		return this.financeMapper.getChildFinancePlanList(queryFlag);
	}
	
	public List<PlanCategorys> getCategorys(Map<String, Object> map) throws Exception {
		return this.financeMapper.getCategorys(map);
	}
	
	public List<Finance> getPlansByKind(Map<String, Object> map) throws Exception {
		return this.financeMapper.getPlansByKind(map);
	}
	
	public String getCategoryNum(Map<String, Object> map) throws Exception {
		return this.financeMapper.getCategoryNum(map);
	}
	
	public String getPlanNum(Map<String, Object> map) throws Exception {
		return this.financeMapper.getPlanNum(map);
	}

}

